<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<html>
<head>
<title>View tv Broadcast By Your Choice</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/viewChoice.css" />
<script type="text/javascript" src="/script/geography.js"></script>
<script type="text/javascript" src="/script/tv.js"></script>
</head>
<body onload="fillgeographic_region();">
	<%
		HttpSession session1 = request.getSession();
		String role = (String) session1.getAttribute("Role");
	%>
	<h2>View Tv Data</h2>
	<form name="BroadcastForm" onsubmit="return choiceValidation()" action="<%=request.getContextPath()%>/TvBroadcastServlet" target="_blank">
		<input type="hidden" name="action" value="viewTvBroadcastsNew">
		<p>
		<div id="error">
			<font id="id1">Select Geographic Region only for viewing data for the whole region</font>
		</div>
		<table style="float: left; position: relative; margin-right: 0px;">
			<tr>
				<th>Geographic Region:</th>
				<td><select name="geographic_region" onchange="Selectcountry();">
						<option value="">--Select geographic_region--</option>
				</select></td>
			</tr>
			<tr>
				<th>Country:</th>
				<td><select name="country">
						<option value="">--select country--</option>
				</select></td>
			</tr>
			<tr>
				<th>DTT Standard:</th>
				<td><select name="dtt_standard">
						<option value="">--Select DTT Standard--</option>
						<option value="NONE">NONE</option>
						<option value="ATSC">ATSC</option>
						<option value="DTMB">DTMB</option>
						<option value="ISDB-T">ISDB-T</option>
						<option value="DVB-T">DVB-T</option>
						<option value="DVB-T2">DVB-T2</option>
						<option value="Not Known">Not Known</option>
				</select></td>
			</tr>
			<tr>
				<th>Dtt Status:</th>
				<td><select name="dtt_status">
						<option value="">--Select DTT Status--</option>
						<option value="Undecided">Undecided</option>
						<option value="Adopted">Adopted</option>
						<option value="Trial">Trial</option>
						<option value="Deployed">Deployed</option>
						<option value="Dropped">Dropped</option>
						<option value="Not Known">Not Known</option>
				</select></td>
			</tr>
			<tr>
				<th>Analog Standard:</th>
				<td><select name="analog_standard">
						<option value="">--Select Analog Standard--</option>
						<option value="NA">NA</option>
						<option value="NTSC">NTSC</option>
						<option value="PAL">PAL</option>
						<option value="SECAM">SECAM</option>
						<option value="None">None</option>
				</select></td>
			</tr>
			<tr>
				<th>ASO Status:</th>
				<td><select name="aso_status">
						<option value="">--Select ASO Status--</option>
						<option value="NA">NA</option>
						<option value="Not Known">Not Known</option>
						<option value="Not Planned">Not Planned</option>
						<option value="Not Started">Not Started</option>
						<option value="Ongoing">Ongoing</option>
						<option value="Completed">Completed</option>
				</select></td>
			</tr>
			<tr>
				<th>DSO Status:</th>
				<td><select name="dso_status">
						<option value="">--Select ASO Status--</option>
						<option value="NA">NA</option>
						<option value="Not Known">Not Known</option>
						<option value="Not Planned">Not Planned</option>
						<option value="Not Started">Not Started</option>
						<option value="Ongoing">Ongoing</option>
						<option value="Completed">Completed</option>
				</select></td>
			</tr>
		</table>
		<table style="position: relative;">
			<tr>
				<th>Next Transition Planned:</th>
				<td><select name="next_transition_planned">
						<option value="">--Select Transition planned--</option>
						<option value="NA">NA</option>
						<option value="Not Known">Not Known</option>
						<option value="Yes">Yes</option>
						<option value="No">No</option>
				</select></td>
			</tr>
			<tr>
				<th>Standard (transitioning into):</th>
				<td><select name="standard_transition_into">
						<option value="">--Select Standard--</option>
						<option value="NA">NA</option>
						<option value="Not Known">Not Known</option>
						<option value="Yes">Yes</option>
						<option value="No">No</option>
				</select></td>
			</tr>
			<tr>
				<th>Status:</th>
				<td><select name="status">
						<option value="">--Select Status--</option>
						<option value="NA">NA</option>
						<option value="Not Known">Not Known</option>
						<option value="Yes">Yes</option>
						<option value="No">No</option>
				</select></td>
			</tr>
			<tr>
				<th>Status Confirmed:</th>
				<td><select name="status_confirmed">
						<option value="">--Select Status Confirmed--</option>
						<option value="Yes">Yes</option>
						<option value="No">No</option>
				</select></td>
			</tr>
			<tr>
				<th>HD Present:</th>
				<td><select name="hd_present">
						<option value="">--HD present?--</option>
						<option value="Yes">Yes</option>
						<option value="No">No</option>
						<option value="Not Known">Not Known</option>
				</select></td>
			</tr>
			<tr>
				<th>Interactive Standards:</th>
				<td><select name="interactive_standard">
						<option value="">--Select interactive Standard--</option>
						<option value="None">None</option>
						<option value="Optional">Optional</option>
						<option value="Not Known">Not Known</option>
						<option value="MHEG5">MHEG5</option>
						<option value="MHP">MHP</option>
						<option value="BML">BML</option>
						<option value="GINGA">GINGA</option>
						<option value="HBB">HBB</option>
				</select></td>
			</tr>
		</table>
		<div style="clear: both;"></div>
		<br>
		<div align="center">
			<input type="submit" name="submit" value="View"><input type="reset" name="reset" value="Reset">
		</div>
	</form>
	<%
		if (role.equalsIgnoreCase("Admin"))
		{
	%>
	<h2>Add Data</h2>
	<p>
		<a href="/jsp/addTvBroadcastNew.jsp" target="iframe1">Add New TV Data</a>
	</p>
	<%
		}
	%>
	<h2>Reports</h2>
	<a href="https://docs.google.com/spreadsheet/ccc?key=0AkDCQ_IhBxYndDlJMldLVktYazJ3V3RKeVc1Wk5WMXc&usp=sharing" target="_blank">TV Report</a>
	<%-- BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();--%>
	<%-- 	%><form action="<%=blobstoreService.createUploadUrl("/upload")%>" --%>
	<!-- 		method="post" enctype="multipart/form-data"> -->
	<!-- 		<input type="text" name="foo"> <input type="file" -->
	<!-- 			name="myFile"> <input type="submit" value="Submit"> -->
	<!-- 	</form> -->
</body>
</html>